<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.7.0.js"></script>
</head>
<body>
<div style="font-size: 30px">当前在线人数：<span id="cnt" style="color: red"></span></div>
<p><a href="page1.html" target="_blank">第一个页面</a> </p>
<p><a href="page2.html" target="_blank">第二个页面</a> </p>
<p><a href="page3.html" target="_blank">第三个页面</a> </p>
</body>
<script>
    $().ready(function (){
        $.ajax({
            url: "init",
            type: "get",
            success: function (data){
                $("#cnt").html(data)
            }
        })
    })
</script>
</html>